<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="contents-Type" contents="text/html; charset=utf-8" />
<title>{$xsite.title} - {$xsite.slogan}</title>
<meta name="description" content="{$xsite.description}" />
<meta name="keywords" content="{$xsite.keywords}" />
<link rel="shortcut icon" href="{:SITE_URL}/public/themes/blue/images/favicon.ico" />
<link href="__PUBLIC__/themes/blue/layout.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/themes/blue/blue/theme.css" id="themepoint" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/js/jquery-1.4-and-jquery-ui-core-1.7.2.js" ></script>
<script type="text/javascript" src="__PUBLIC__/js/jquery-ui-1.7.2/dragable.js" ></script>
<script type="text/javascript" src="__PUBLIC__/js/thickbox/jquery.mousewheel.min.js" charset="utf-8"></script>
<script type="text/javascript" src="__PUBLIC__/language/{$lang}/lang.js" ></script>
<script> var LANGUAGE_NAME = '{$lang}'; </script>
<script type="text/javascript">
	/* 全局JS常量 */
	var THEME = "__THEME__";
	var APP    = "__APP__";
	var URL    = "__URL__";
	var JS_DIR     = "__PUBLIC__/js";
	var PUBLIC = "../Public";
	var SITE_URL = "<php>echo SITE_URL</php>";
	var EDITER_BASE = JS_DIR+"/kissy/";
	var EDITER_UPLOAD = "{:U('home/Attach/index')}";
</script>
<script type="text/javascript" src="__PUBLIC__/js/tbox/tbox.js" ></script>
<script type="text/javascript" src="__PUBLIC__/js/public.js" ></script>
<script type="text/javascript" src="__PUBLIC__/js/jwidget_1.0.0.js" ></script>
</head><body>
<!--头部 begin-->
<div class="header" id="themeheader">
  <div class="CC">
	<div class="top_logn">
		<div class="lognT">
			<span class="userstatus"></span>
			<?php if( getLang()=='en' ): ?>

				<?php
				$channel	=	t($_GET['channel']);
				if( in_array($channel,array('enhome','enwiki','enask','engroup','enspace')) && APP_NAME.'/'.MODULE_NAME.'/'.ACTION_NAME == 'portal/Index/index'){
					echo '<a href="'.SITE_URL.'/'.substr($channel,2,10).'?l=zh-cn">中文</a>';
				}else{
				?>
					<a href="{$pre_url}<?php if(false==strpos(t($_SERVER['REQUEST_URI']),'?')){ echo '?l=zh-cn'; }else{ echo t($_SERVER['REQUEST_URI']).'&l=zh-cn';} ?>">中文</a>
				<?php
				}
				?>

			<else />
				<?php
				$channel	=	t($_GET['channel']);
				if( in_array($channel,array('home','wiki','ask','group','space')) && APP_NAME.'/'.MODULE_NAME.'/'.ACTION_NAME == 'portal/Index/index'){
					//echo '<a href="'.SITE_URL.'/'.$channel.'?l=en">English</a>';
					echo '<a href="'.SITE_URL.'/'.$channel.'?l=en">English</a>';
				}else{
				?>
					<a href="<?php if(false==strpos(t($_SERVER['REQUEST_URI']),'?')){ echo '?l=en'; }else{ echo t($_SERVER['REQUEST_URI']).'&l=en';} ?>">English</a>
				<?php
				}
				?>
			<?php endif; ?>
		</div>
		<script type="text/javascript">$.getScript('{:U('home/Public/header')}');</script>
    </div>

    <div class="logo"> <a href="{:U('home')}"><img id="logo_image" src="__PUBLIC__/themes/blue/blue/logo.jpg" /></a> </div>
    <div class="top_nav">
      <ul>

        <li> <a 
          <php>if( (APP_NAME=='portal' && in_array($_GET['channel'],array('home','enhome')) ) || (APP_NAME=='home' && MODULE_NAME=='Index')){</php>class="on"<php>}</php>
          href="__ROOT__/<?php if( getLang()=='en' ){ echo 'en';} ?>home">{:L('base_index')}<span></span></a> </li>
        <li> <a 
          <php>if( (APP_NAME=='portal' && in_array($_GET['channel'],array('ask','enask')) ) || (APP_NAME=='ask')){</php>class="on"<php>}</php>
          href="__ROOT__/<?php if( getLang()=='en' ){ echo 'en';} ?>ask">{:L('base_ask')}<span></span></a> </li>
        <li> <a 
          <php>if( (APP_NAME=='portal' && $_GET['channel']=='bbs' ) || (APP_NAME=='bbs')){</php>class="on"<php>}</php>
          href="{:U('bbs/Index/all')}">{:L('base_bbs')}<span></span></a> </li>
        <li> <a 
          <php>if( (APP_NAME=='portal' && in_array($_GET['channel'],array('group','engroup')) ) || (APP_NAME=='group')){</php>class="on"<php>}</php>
          href="__ROOT__/<?php if( getLang()=='en' ){ echo 'en';} ?>group">{:L('base_group')}<span></span></a> </li>
        <li> <a 
          <php>if( (APP_NAME=='portal' && in_array($_GET['channel'],array('space','enspace')) ) || (APP_NAME=='space')){</php>class="on"<php>}</php>
          href="__ROOT__/<?php if( getLang()=='en' ){ echo 'en';} ?>space">{:L('base_space')}<span></span></a> </li>
        <li> <a 
          <php>if( (APP_NAME=='portal' && in_array($_GET['channel'],array('wiki','enwiki')) ) || (APP_NAME=='wiki')){</php>class="on"<php>}</php>
          href="__ROOT__/<?php if( getLang()=='en' ){ echo 'en';} ?>wiki">{:L('base_wiki')}<span></span></a> </li>
        <li> <a 
          <php>if( (APP_NAME=='portal' && in_array($_GET['channel'],array('document','endocument')) ) || (APP_NAME=='document')){</php>class="on"<php>}</php>
          href="{:U('document')}">{:L('base_knowledge')}<span></span></a> </li>

        <php>if($user){</php>
        <li onmouseover="this.className='over'" onmouseout="this.className='#'" style="margin-left:40px;"> <a class="on2" 
          <php>if(APP_NAME=='home' && MODULE_NAME=='User'){</php>
          class="on"
          <php>}</php>
          href="{:U('home/User/index','uid=0')}">{:L('my_space')}<span></span></a>
          <div class="topdropmenu"> 
			  <a href="{:U('home/Record/index')}">{:L('my_record')}</a> 
			  <a href="{:U('home/Blog/blogList')}">{:L('my_blog')}</a> 
			  <a href="{:U('home/Ask/myAsk')}">{:L('my_ask')}</a> 
			  <a href="{:U('home/Bbs/post')}">{:L('my_bbs')}</a> 
			  <a href="{:U('home/Group/manage')}">{:L('my_group')}</a> 
			  <a href="{:U('home/Wiki/create')}">{:L('my_wiki')}</a> 
			  <a href="{:U('home/Colleague/index')}">{:L('my_colleague')}</a> 
			  <a href="{:U('home/Follow/sort')}">{:L('my_subscibe')}</a> 
			  <a href="{:U('home/Share/my')}">{:L('my_share')}</a> 
		  </div>
        </li>
        <php>}</php>
      </ul>
    </div>
  </div>
</div>
<!--头部 end-->
<include file="__THEME__/searchbar" />